<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>业主爱家</title>
<link type="text/css" rel="stylesheet" href="css/houseMain.css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css" media="screen"
	type="text/css" />
</head>
<body style="width: 100%;">
	<div id="content">
		<div id="conTitle">&nbsp;| 投诉列表</div>
		<div id="complain">
			<table>
				<c:forEach var="list" items="${list}">
					<tr>
						<td style="width: 30px;">→</td>
						<td style="width: 720px;"><a
							href="complaintDetail?id=${list.id}"
							style="text-decoration: none; color: black;">${list.content}</a></td>
						<td style="width: 100px;"><fmt:formatDate value="${list.modifyDate}" pattern="yyyy-MM-dd" /></td>
					</tr>
				</c:forEach>
			</table><br/><br/><br/><br/><br/><br/>
			<c:if test="${totalPages>0}">
				<c:if test="${page>1}">
					<a href="?page=${page-1}&type=${type}">[上一页]</a>
				</c:if>
				<c:if test="${page<=1}">
					<a>[上一页]</a>
				</c:if>
				<c:if test="${page<totalPages}">
					<a href="?page=${page+1}&type=${type}">[下一页]</a>
				</c:if>
				<c:if test="${page>=totalPages}">
					<a>[下一页]</a>
				</c:if>
		第 ${page} 页，共 ${totalPages} 页
	  </c:if>
		</div>
	</div>
</body>
</html>